import java.util.Scanner;

public class account2 {
    public static void main(String[] args) {

        Scanner sc =new Scanner(System.in);
        System.out.println("请输入转出金额");
        int  i =sc.nextInt();

        account a=new account();//转出账户
        a.setBalance(1000);
            System.out.println("小明账户余额转出"+a.getBalance());
        a.withdraw(i);
            System.out.println("转出之后 " + a.getBalance());

        //存钱到小明账户
        account b =new account();
        b.setBalance(1000);
        System.out.println("转出 " + b.getBalance());
        b.deposit(1000+i);
        System.out.println("转入 " + b.getBalance());
    }
}
